﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Net.Sockets;
using System.Net;
using System.Threading;

namespace $safeprojectname$
{
    public partial class Client : Form
    {
        EndPoint remoteEP;
        public Client()
        {
            InitializeComponent();
        }

        private void btnconnect_Click(object sender, EventArgs e)
        {
            remoteEP = new IPEndPoint(IPAddress.Parse(tbIP1.Text + "." + tbIP2.Text + "." + tbIP3.Text + "." + tbIP4.Text), int.Parse(tbport.Text.Trim()));
            Messanger m = new Messanger(remoteEP);
            this.Visible = false;
        } 
    }
}
